<template>
  <div>参数： {{ key }}</div>
</template>
<script>
export default {
  data() {
    return {
      key: ''
    }
  },
  watch: {
    '$route': {
      handler(val) {
        this.key = val.query.key
      },
      deep: true,
      immediate: true

    }
  }

}
</script>
